-- GENERATED SPELL FOR [Death Talon Flamescale] --


function spell0_12463(pUnit, Event) --@Berserker Charge,n/a--
pUnit:FullCastSpellOnTarget(16636,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12463', 643, 1)
end

function spell1_12463(pUnit, Event) --@Flame Shock,n/a--
pUnit:FullCastSpellOnTarget(22423,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12463', 12000, 1)
end

function Sorts_12463(pUnit, Event)
local choix_sorts_12463 = math.random(0, 1)
if choix_sorts_12463 == 0 then
pUnit:RegisterEvent('spell0_12463', 1, 1)
end
if choix_sorts_12463 == 1 then
pUnit:RegisterEvent('spell1_12463', 1, 1)
end
end

function mob12463_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12463', math.random(1500, 3000), 1)
end

function mob12463_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12463_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12463_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12463, 1, 'mob12463_Action')
RegisterUnitEvent(12463, 2, 'mob12463_Leave')
RegisterUnitEvent(12463, 3, 'mob12463_Kill')
RegisterUnitEvent(12463, 4, 'mob12463_Die')
